<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
                                                                                                                    your
                                                                                                                    browser</a>
                       or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome
                                                                                     Frame</a> to improve your
                       experience.</p>
<![endif]-->
<?php
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_bet_calculators.php';
?>
<!-- Navigation & Logo-->
<div class="mainmenu-wrapper">
    <div class="container">
        <div class="menuextras">
            <div class="extras">
                <ul>
                    <?php
                        if (!empty($_SESSION['user_login'])) {
                            $user = "logined";
                        } else {
                            $user = null;
                        }
                        //                        $user = filter_input(INPUT_SESSION, 'user_login');
                        if ($user != null) {
                            ?>
                            <li>
                                <?php $user = $_SESSION['user_info']; ?>
                                Balance: <b>$ <?php echo api_bet_calculators::get_balance($user['username']); ?></b>
                            </li>
                        <?php
                        }
                    ?>
                    <li>
                        <div class="dropdown choose-country">
                            <a class="#" data-toggle="dropdown" href="#"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>/flags/us.png" alt="United States">
                                US</a>
                            <ul class="dropdown-menu" role="menu">
                                <li role="menuitem">
                                    <a href="#"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>flags/ru.png" alt="Germany">
                                        RU</a></li>
                            </ul>
                        </div>
                    </li>
                    <?php
                        if ($user != null) {
                            ?>
                            <li><a href="#">Hi, <?php echo $_SESSION['user_info']['username']; ?></a></li>
                            <li><a href="logout.php">Logout</a></li>
                        <?php } else { ?>
                            <li><a href="login.php">Login</a></li>
                            <li><a href="register.php">Register</a></li>
                        <?php
                        } ?>
                </ul>
            </div>
        </div>
        <nav id="mainmenu" class="mainmenu">
            <ul>
                <li class="logo-wrapper">
                    <a href="index.php"><img src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>logo-red.png" alt="Multipurpose Twitter Bootstrap Template" height="50px"></a>
                </li>
                <li>
                    <a href="index.php">Matches</a>
                </li>
                <li>
                    <a href="">Search For Matches</a>
                </li>
                <li>
                    <a href="affiliate.php">Affiliate</a>
                </li>
                <li>
                    <a href="">Profile</a>
                </li>
                <li>
                    <a href="cashier.php">Cashier</a>
                </li>
            </ul>
        </nav>
    </div>
</div>

<!-- Homepage Slider -->
<div class="homepage-slider">
    <div id="sequence">
        <ul class="sequence-canvas">
            <!-- Slide 1 -->
            <li class="bg4">
                <!-- Slide Title -->
                <h2 class="title">Betting Webite</h2>
                <!-- Slide Text -->
                <h3 class="subtitle">Welcome to Betting Website</h3>
                <!-- Slide Image -->
                <img class="slide-img" src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>homepage-slider/5.png" alt="Slide 1"/>
            </li>
            <!-- End Slide 1 -->
            <!-- Slide 2 -->
            <li class="bg3">
                <!-- Slide Title -->
                <h2 class="title">Betting Webite</h2>
                <!-- Slide Text -->
                <h3 class="subtitle">Welcome to Betting Website</h3>
                <!-- Slide Image -->
                <img class="slide-img" src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>homepage-slider/5.png" alt="Slide 2"/>
            </li>
            <!-- End Slide 2 -->
            <!-- Slide 3 -->
            <li class="bg1">
                <!-- Slide Title -->
                <h2 class="title">Betting Webite</h2>
                <!-- Slide Text -->
                <h3 class="subtitle">Welcome to Betting Website</h3>
                <!-- Slide Image -->
                <img class="slide-img" src="<?php echo LINK_ROOT . DIR_SHARED_LAYOUT_IMAGES ?>homepage-slider/6.png" alt="Slide 3"/>
            </li>
            <!-- End Slide 3 -->
        </ul>
        <div class="sequence-pagination-wrapper">
            <ul class="sequence-pagination">
                <li>1</li>
                <li>2</li>
                <li>3</li>
            </ul>
        </div>
    </div>
</div>
<!-- End Homepage Slider -->
